/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.capex.javacore.clases;

/**
 *
 * @author Acer
 */
public class Figura {

    public double calcularArea(double ladoA, double ladoB){
        return ladoA*ladoB;
    }

    public double calcularArea(double radio){
        return Math.PI *(radio*radio);
    }

    public long calcularArea(long lado){
        return (lado*lado);
    }

    public static void main(String[] args) {
        Figura figura = new Figura();

        System.out.println("Rectangulo 8, 9 Area = "+figura.calcularArea(8, 9));
        System.out.println("Circulo 15 Area = "+figura.calcularArea(15d));
        System.out.println("Cuadrado 5 Area = "+figura.calcularArea(5l));


    }

}
